package cn.doourbest.learnspring.service;


import cn.doourbest.learnspring.service.impl.ServiceBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TwoService {

    @Autowired
    private LearnSpringService learnSpringService;

    public void sourName(){
        learnSpringService.getName();
    }

    public void soutAge(){
        learnSpringService.getAge(new ServiceBO());
    }
}
